/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package NewClass;

/**
 *
 * @author SQL
 */
public class MiVentana extends javax.swing.JFrame{
    private javax.swing.JButton JButton2;
    private javax.swing.JButton JButton1;
    
    public MiVentana(){
    JButton1= new javax.swing.JButton();
    JButton2= new javax.swing.JButton();
    
    getContentPane().setLayout(null);
    setTitle("Un ejemplo");
    
    JButton1.setBackground(java.awt.Color.red);
    JButton1.setText("Boton 1");
    getContentPane().add(JButton1);
    JButton1.setBounds(121,146,120,50);
    JButton2.setText("Boton 2");
     getContentPane().add(JButton2);
    JButton2.setBounds(130,70,77,26);
    
    pack();
    }
    public static void main(String args[]){
        new MiVentana().setVisible(true);
    }
}
